package org.itboys.admin.entity.lasted.process;

import org.mongodb.morphia.annotations.Entity;
import org.itboys.mongodb.entity.BaseMongoEntity;
/**
 * 作者：jiangxiong
 * 日期：2017年2月27日
 * 联系方式 ：empty90911@126.com
 * 描述：系统_审核_流程_详细（人员操作信息）
 */

@Entity(value = "SystemProcessDetail", noClassnameStored = true)
public class SystemProcessDetail extends BaseMongoEntity {
        private Long processId;//流程ID
        private Long userId;//用户ID
        private String userName;//用户昵称
        private Integer sequence;//审核顺序
        private String handleMsg;//审核意见
        private Integer status;//审核状态，1待审核，2已驳回，3已通过
      //  private Integer current;//是否当前节点
      //  private Integer isFinal;//是否终点
        //以下对象从SystemProcess中获取。
        private String title;//名称
        private String desc;//备注
        private Integer type;//类型。1，项目审核。2，融资方案审核（根据自己的业务逻辑去配置），
        private String outClassName;//关联业务实体的类名
        private Long outClassId;//关联业务实体的类ID

    public SystemProcessDetail() {
    }

    /*public SystemProcessDetail(Long processId, Long userId, String userName, Integer sequence, String handleMsg, Integer status, Integer current, Integer isFinal, String title, String desc, Integer type, String outClassName, Long outClassId) {
        this.processId = processId;
        this.userId = userId;
        this.userName = userName;
        this.sequence = sequence;
        this.handleMsg = handleMsg;
        this.status = status;
        this.current = current;
        this.isFinal = isFinal;
        this.title = title;
        this.desc = desc;
        this.type = type;
        this.outClassName = outClassName;
        this.outClassId = outClassId;
    }*/

    public SystemProcessDetail(Long processId, Long userId, String userName, Integer sequence, String handleMsg, Integer status, String title, String desc, Integer type, String outClassName, Long outClassId) {
        this.processId = processId;
        this.userId = userId;
        this.userName = userName;
        this.sequence = sequence;
        this.handleMsg = handleMsg;
        this.status = status;
        this.title = title;
        this.desc = desc;
        this.type = type;
        this.outClassName = outClassName;
        this.outClassId = outClassId;
    }

    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getHandleMsg() {
        return handleMsg;
    }

    public void setHandleMsg(String handleMsg) {
        this.handleMsg = handleMsg;
    }

    public Integer getStatus() {
        return status;
    }
    public String getStatusStr() {
        String statusStr="";
        if(status==null)return statusStr;

        switch (status) {
            case 1:
                statusStr="待审核";
                break;
            case 2:
                statusStr="已驳回";
                break;
            case 3:
                statusStr="已审核";
                break;
            default:
                break;
        }
        return statusStr;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOutClassName() {
        return outClassName;
    }

    public void setOutClassName(String outClassName) {
        this.outClassName = outClassName;
    }

    public Long getOutClassId() {
        return outClassId;
    }

    public void setOutClassId(Long outClassId) {
        this.outClassId = outClassId;
    }

   /* public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getIsFinal() {
        return isFinal;
    }

    public void setIsFinal(Integer isFinal) {
        this.isFinal = isFinal;
    }*/
}
